﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TimKiemSanPham.aspx.cs" Inherits="WebBanThuoc.admin.TimKiemSanPham" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Tìm Kiếm Sản Phẩm</title>    
    <link rel="shortcut icon" href="../img/admin.ico" />
    <script src="../js/jquery-1.7.2.js" type="text/javascript"></script>
    <script src="../js/jquery.keyfilter.js" type="text/javascript"></script>
    <script src="../js/jquery.maskedinput.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.8.20.custom.min.js" type="text/javascript"></script>
    <script src="../js/thai.js" type="text/javascript"></script>
    <script src="../js/colResizable-1.3.min.js" type="text/javascript"></script>    
    <link rel="stylesheet" type="text/css" href="../style/static.css"/>
    <link rel="stylesheet" type="text/css" href="../style/dangnhap_btn.css"/>
    <link href="../style/flick/jquery-ui-1.8.20.custom.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
            .f_span-74
            {
                width:1100px; 
                float:none;		
                padding: 20px;
            }
            input, textarea {
                -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
                -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
                box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
                -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
                -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
                -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
                -o-transition: border linear 0.2s, box-shadow linear 0.2s;
                transition: border linear 0.2s, box-shadow linear 0.2s;
                line-height: 18px;
                color: #555;
                border: 1px solid #CCC;
                -webkit-border-radius: 3px;
                border-radius: 3px;
                font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
                font-size: 15px;
                height: 20px;
                font-weight: normal;
                width: 358px;
            }
            .inputEmail
            {
                height:24px;
            }
            .thai_font
            {
                font-family:"Helvetica Neue", Helvetica, Arial, sans-serif	
            }
            .thai_font_DN
            {
                font-size:30px;
                font-weight:bold;
                padding:10px 0px 30px;		
                color:#0088CC;
                width:820px;
                float:left;
            }
            .thai_font_lable
            {
                font-size:14px;
                font-weight:bold;
                padding-bottom:3px;
                width: 180px;
                margin-top:5px;
            }
            .thai_font_lable_right
            {
                font-size:14px;
                font-weight:bold;
                padding-bottom:3px;
                width: 140px;
                margin-top:5px;
            }
            div{
                float:left;	
            }
            .thai_table_ctDH
            {
                float:left;            
            }
            a
            {
                margin-right: 8px;
            }
            
            span
            {
                margin-right: 8px;
                color:Red;
            }
        </style>

    <script language="javascript" type="text/javascript">

        <%if (Session["page_TKSanPham_msgSucessFunc"] != null)
        {%>
            alert("<%=Session["page_TKSanPham_msgSucessFunc"] %>");
        <%} %>
            
        function searchSP(){
            $('#btn_Tim').click();
        }
    </script>
</head>
<body>
    <form name="frm_TimSP" id="frm_TimSP" method="post" runat="server" >        
            <div style="float: none; margin: 20px;" class="f_span-74">                
                <div style="width:810px;text-align:left">
                    <div style="width:100%;text-align:center">
                        <div class="thai_font thai_font_DN">TÌM KIẾM SẢN PHẨM</div>
                    </div>
                    <div style="width:100%;text-align:center">&nbsp;</div>
                    <div style="width:100%;text-align:left">
                        <div style="float:left" class="thai_font_lable">Tên Sản phẩm:</div>
                        <input type="text" name="TenSanPham" id="TenSanPham" autocomplete="off" maxlength="100"  style="width:300px" onchange="searchSP();"  value="<%= Request.Params["TenSanPham"] %>" /> 
                    </div>
                    <div style="width:100%;text-align:center">&nbsp;</div>
                </div>
                
                <div style="width:810px;text-align:left">                    
                    <div style="width:100%;text-align:left;padding-top:10px;padding-bottom:10px;font-size:14pt; font-weight:bold;"> <u>Danh sách Sản Phẩm</u></div>
                    <div style="width:100%;text-align:left">
                        <asp:GridView ID="data_GridView" runat="server" AutoGenerateColumns="False" 
                            CellPadding="3" 
                            ShowHeaderWhenEmpty="True" BackColor="White" BorderColor="#CCCCCC" 
                            BorderStyle="Solid" BorderWidth="1px" EnableModelValidation="True" 
                            EmptyDataText=" " CssClass="thai_table_ctDH" AllowPaging="True" 
                            PageSize="20" onpageindexchanging="data_GridView_PageIndexChanging" >
                            <Columns>
                                <asp:BoundField DataField="MaSanPham" HeaderText="Mã sản phẩm" ReadOnly="True" 
                                    NullDisplayText="''">
                                <ControlStyle Width="100px" />
                                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="100px" 
                                    BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                    BackColor="#99FFCC" />
                                </asp:BoundField>
                                <asp:BoundField DataField="TenSanPham" HeaderText="Tên sản phẩm">
                                <ControlStyle Width="140px" />
                                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="160px" 
                                    BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MaLoaiSanPham" HeaderText="Mã loại sản phẩm">
                                <ControlStyle Width="120px" />
                                <ItemStyle BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                    HorizontalAlign="Left" VerticalAlign="Middle" Width="80px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ThanhPhan" HeaderText="Tên loại sản phẩm">
                                <ControlStyle Width="140px" />
                                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                                <ItemStyle BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                    HorizontalAlign="Left" VerticalAlign="Middle" Width="120px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MaNhaSanXuat" HeaderText="Mã nhà sản xuất">
                                <ControlStyle Width="100px" />
                                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                                <ItemStyle BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                    HorizontalAlign="Left" VerticalAlign="Middle" Width="80px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="KhuyenMai" HeaderText="Khuyến mãi">
                                <ControlStyle Width="100px" />
                                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                                <ItemStyle BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                    HorizontalAlign="Left" VerticalAlign="Middle" Width="100px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="GiaBan" HeaderText="Giá bán" ReadOnly="True" 
                                    DataFormatString="{0:#,0.##}">
                                <ControlStyle Width="140px" />
                                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                                <ItemStyle BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                    HorizontalAlign="Right" VerticalAlign="Middle" Width="140px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="GiaDaGiam" HeaderText="Giá đã giảm giá" 
                                    ReadOnly="True" DataFormatString="{0:#,0.##}">
                                <ControlStyle Width="140px" />
                                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                                <ItemStyle BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                    HorizontalAlign="Right" VerticalAlign="Middle" Width="140px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CongDung" HeaderText="Có hàng" ReadOnly="True">
                                <ControlStyle Width="140px" />
                                <HeaderStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                                <ItemStyle BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                                    HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                                </asp:BoundField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White"  
                                Font-Size="Small" BorderStyle="Solid" BorderWidth="1px" BorderColor="White" />
                            <PagerStyle BackColor="#FFCCFF" ForeColor="#000066" HorizontalAlign="Center" 
                                Font-Bold="True" Font-Underline="False" VerticalAlign="Middle" />
                            <RowStyle ForeColor="#000066" BorderStyle="NotSet" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                    </div>
                    <div style="width:100%;text-align:left;height:300px">
                        <div style="float:left" class="thai_font_lable">&nbsp;</div>                        
                    </div>
            </div>

            </div>
                <div style="width:100%;text-align:right; float: right; display: block; position: fixed; z-index: 4000; bottom:0px; background-color:#D7FFEB; left:0px">
                    <div style="float:left;padding-top: 0px;"><a href="/admin/home.aspx" ><img alt="" src="../img/home.png" title="Trang Chủ"/></a></div>
                    <div style="float:right;width:110px;">
                        <input type="submit" name="btn_Tim" value="Tìm Kiếm" onclick="" id="btn_Tim" class="btn btn-large btn-primary" style="margin:5px"/>
                    </div>
                    
                </div>
                <div style="width:100%;text-align:left;padding-top:20px;height:80px">
                    &nbsp;
                </div>
            
            <%//Session.Remove("page_QLCTDonHang_dataDH");
              Session.Remove("page_QLCTDonHang_msgSucessFunc");
              //Session.Remove("page_QLCTDonHang_dataSP"); %>
        </form>
</body>
</html>
